/*
 * Copyright 2016-2019 yoara
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package yhao.infra.feature.payment.core.alipaynew.model.pay;


import yhao.infra.feature.payment.core.support.NotifyUrl;

/**
 * 支付封装类
 *
 * @author yoara
 */
public class AliPayModel {
    private String out_trade_no;//商户订单号，需要保证不重复
    private String total_amount;//订单金额
    private String subject;//订单标题
    private String body;//描述信息
    private String notifyUrl;//回调地址，如果为空则使用默认

    public AliPayModel(String out_trade_no, String total_amount, String subject, NotifyUrl url) {
        this.out_trade_no = out_trade_no;
        this.total_amount = total_amount;
        this.subject = subject;
        this.notifyUrl = url.getUrl();
    }

    public String getOut_trade_no() {
        return out_trade_no;
    }

    public String getTotal_amount() {
        return total_amount;
    }

    public String getSubject() {
        return subject;
    }

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }

    public String getNotifyUrl() {
        return notifyUrl;
    }
}
